package com.translate.web.api.controller;

import java.util.List;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.response.vo.ResponseModel;
import com.translate.vo.PreStoredRewardsConfVO;
import com.translate.web.service.IPreStoredRewardsConfService;

@RestController
@RequestMapping("preStoredRewardsConf")
public class PreStoredRewardsConfController {
	private IPreStoredRewardsConfService service;

	public PreStoredRewardsConfController(IPreStoredRewardsConfService service) {
		this.service = service;
	}

	/**
	 * 活动
	 * @param param
	 * @return
	 */
	@PostMapping("/listPreStoredRewardsConfs")
	public ResponseModel<List<PreStoredRewardsConfVO>> listPreStoredRewardsConfs() {
		
		return ResponseModel.<List<PreStoredRewardsConfVO>>success(
				this.service.getListFromCache(PreStoredRewardsConfVO.class));
	}


}